package com.atguigu.ssyx.acl.service;

import com.atguigu.ssyx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @描述:菜单管理服务
 * @作者:胡树苑
 * @时间:2025/9/11 14:45
 */
public interface PermissionService extends IService<Permission> {
    //1.查询所有菜单
    List<Permission> queryAllPermission();
    //2.递归删除菜单
    void removeChildById(Long id);
    //3.查询角色及所属菜单
    List<Permission> getPermissionByRoleId(Long roleId);
    //4.为角色分配菜单
    void doAssign(Long roleId, Long[] permissionId);



}
